package com.broad.data.storage.common.model;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Setter
@Getter
public class JwtUser implements Serializable {

    private String id;

    private String name;

    private String token;

    private boolean validate;

    public JwtUser(boolean validate) {
        this.validate = validate;
    }

    public static JwtUser ofInvalidate(){
        return new JwtUser(false);
    }
}
